package com.new_wear.project.system.integral.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 用户 - 积分(等、消)对象 cst_user_integral
 * 
 * @author new_wear
 * @date 2019-12-31
 */
public class CstUserIntegral extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户openid */
    private Long uid;

    /** 积分数 */
    @Excel(name = "积分数")
    private Long scores;

    /** 年份 */
    @Excel(name = "年份", width = 30, dateFormat = "yyyy-MM-dd")
    private Date year;

    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setScores(Long scores) 
    {
        this.scores = scores;
    }

    public Long getScores() 
    {
        return scores;
    }
    public void setYear(Date year) 
    {
        this.year = year;
    }

    public Date getYear() 
    {
        return year;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uid", getUid())
            .append("scores", getScores())
            .append("year", getYear())
            .toString();
    }
}
